<p>Control structures are code statements that impact the program’s control flow (e.g., if statements, for loops, etc.)</p>
<h2>Why is this an issue?</h2>
<p>While not technically incorrect, the omission of curly braces can be misleading and may lead to the introduction of errors during maintenance.</p>
<p>In the following example, the two calls seem to be attached to the <code>if</code> statement, but only the first one is, and
<code>checkSomething</code> will always be executed:</p>
<pre>
if (condition)  // Noncompliant
  executeSomething();
  checkSomething();
</pre>
<p>Adding curly braces improves the code readability and its robustness:</p>
<pre>
if (condition) {
  executeSomething();
  checkSomething();
}
</pre>
<p>The rule raises an issue when a control structure has no curly braces.</p>
<h2>Resources</h2>
<h3>Documentation</h3>
<ul>
  <li> <a href="https://eslint.org">eslint</a> - Rule <a href="https://eslint.org/docs/latest/rules/curly">curly</a> </li>
</ul>
